package com.platform.qujia.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @Auther: zxy
 * @Date: 2023/10/17 11:11
 * @Description:
 */
@Data
@ApiModel("优惠券核销Dto")
@NoArgsConstructor
@AllArgsConstructor
public class CancelCouponDto {

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "优惠券核销码")
    @NotEmpty(message = "核销码不能为空")
    private String couponNo;

    @ApiModelProperty(value = "核销站点id - 油站id")
    private String verification;

    @ApiModelProperty(value = "核销站点名称 - 油站名称")
    private String verificationName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 加油枪号
     */
    @ApiModelProperty(value = "枪号", example = "1")
    private String oilGun;

    /**
     * 油品名称
     */
    @ApiModelProperty(value = "油品名称即--洗车服务", example = "洗车服务")
    private String oilName;

    /**
     * 油企id
     */
    @ApiModelProperty(value = "油企id", example = "181")
    private Integer enterpriseId;

    /**
     * 油站id
     */
    @ApiModelProperty(value = "油站id", example = "235")
    private Integer stationId;

    /**
     * 加油员id
     */
    @ApiModelProperty(value = "加油员id", example = "3")
    @NotEmpty(message = "用户id不能为空")
    private String oilPersonnelId;

    /**
     * 获取：油站名称
     */
    @ApiModelProperty(value = "获取：油站名称", example = "加油站")
    private String stationName;

    /**
     * 油企名称
     */
    @ApiModelProperty(value = "油企名称", example = "加油汽车站")
    private String enterpriseName;
}
